Power distribution with digital current control

ABSTRACT

Power distribution apparatus, for controlling supply of a current from an electrical power source to at least one load, includes a current sensor, which is coupled to provide an indication of a magnitude of the current flowing to the at least one load. A current limiter is adapted, responsive to the indication, to apply a pulse width modulation to the current drawn from the source so as to maintain the magnitude of the current flowing to the at least one load within a predetermined limit.

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application claims the benefit of U.S. Provisional Patent Application No. 60/292,811, filed May 22, 2001, which is incorporated herein by reference.

FIELD OF THE INVENTION

[0002] The present invention relates generally to power supplies, and specifically to methods and circuitry for avoiding current overload in the use of such power supplies.

BACKGROUND OF THE INVENTION

[0003] Power over LAN™ is a new technology that enables DC power to be supplied to Ethernet data terminals over ordinary Category 5 cabling. This technology enables the terminals to receive their operating power over the same Ethernet local area network (LAN) that they use for data communication. It thus eliminates the need to connect each terminal to an AC power socket, and to provide each terminal with its own AC/DC power converter. Further aspects of this technology are described in PowerDsine Application Note 115, entitled “Power over LAN™: Building Power Ready Devices” (PowerDsine Ltd., Hod Hasharon, Israel), which is incorporated herein by reference. The LAN MAN Standards Committee of the IEEE Computer Society is developing specifications for Power over LAN systems, as described in IEEE Draft P802.3af/D3.0, entitled “Data Terminal Equipment (DTE) Power via Media Dependent Interface (MDI)” (IEEE Standards Department, Piscataway, N.J., 2001), which is also incorporated herein by reference.

[0004] A Power over LAN system comprises an Ethernet switch and a power hub, which serves as the DC power source, along with a number of terminals, which communicate via the switch and draw power from the hub. The system is typically connected in a star topology, with each terminal linked by a dedicated cable to the switch and hub. DC power is carried to the loads (i.e., the terminals) over the twisted pairs provided by Category 5 cabling that are not needed for Ethernet data communications. The power hub may be integrated with the switch, in what is known as an “end-span” configuration, or it may alternatively be located between the switch and the terminals, in a “mid-span” configuration. These alternative configurations are illustrated on pages 16 and 17 of the above-mentioned IEEE Draft.

[0005] To avoid possible equipment damage and safety hazards, the power hub must ensure that none of the loads that it serves draws current in excess of a maximum limit. The need for such current limiting is well known in the art of DC power supplies, and is not limited to the context of Power over LAN. The most common solution for this purpose is to place a sampling resistor and a variable-impedance current-limiting element in series with the load. The sampling resistor provides a differential voltage input to an integrating amplifier, which compares the input voltage to a preset reference. The amplifier output controls the impedance of the current-limiting element, which is typically a bipolar transistor or field effect transistor (FET) operating in its linear range. A digital integrator may be used in place of the integrating amplifier.

[0006] Conventional methods for current limiting of DC power supply output have a number of drawbacks, which are particularly problematic in the context of Power over LAN:

[0007] When current limiting is needed to prevent an overload, the current-limiting element in the power supply must dissipate substantial power. Current limiting may be needed not only in fault situations, but also under certain normal operating conditions. For example, when a terminal on the LAN is initially connected or turned on, it can create a virtual short circuit while its internal power capacitor charges up. The substantial power dissipation required of the current-limiting element creates thermal problems in the hub.

[0008] Because an integrating amplifier or digital integrator is used to control the current-limiting element, the response of the element to current changes is typically slow. On the other hand, reducing the time constant of the integrator can lead to instability and oscillations of the current-limiting impedance.

[0009] All the terminals that are powered by the hub must be protected individually against over current. The cost of the hub is therefore increased by the need to provide a separate sampling resistor, current-limiting element and control circuit for each connection in the LAN.

[0010] Circuits based on pulse width modulation (PWM) are commonly used in applications such as power conversion and switching power supplies. Exemplary PWM circuits and systems for such purposes are described in U.S. Pat. Nos. 5,355,077, 5,969,515, and 6,268,716, whose disclosures are incorporated herein by reference.

SUMMARY OF THE INVENTION

[0011] The present invention seeks to provide improved methods and circuits for current control, which address the problems of conventional current-limiting circuits. The methods and circuits of the present invention are particularly useful in the context of Power over LAN systems, but they are equally applicable to DC power supplies and systems of other types.

[0012] In some preferred embodiments of the present invention, a power supply comprises a voltage source with a current limiter that operates by pulse width modulation (PWM), rather than by variable impedance as in power supplies known in the art. The current limiter receives an input from a current sensor, which senses the current drawn by the load of the power supply, and varies the PWM duty cycle in order to maintain the magnitude of the current within a predetermined limit. Typically, the current limiter comprises a simple switch, such as a transistor, which is opened and closed with the proper frequency and phase to provide the desired PWM. Therefore, the power dissipation of the current limiter is minimal, even when severe current limiting must be applied. A smoothing circuit is coupled between the output of the current limiter and the load, so that the load receives DC current notwithstanding the PWM.

[0013] In further preferred embodiments of the present invention, a novel method is provided for rapid adjustment of a current-limiting element when a current overload occurs. This method is applicable both to the novel PWM-based current limiter that is described above and to current limiters based on variable-impedance elements, as are known in the art. A digital processor samples the current drawn by the load. If the current exceeds a preset maximum, the processor sets the current limiter to operate successively at first and second settings, at both of which the current passed by the current limiter is less than the current at the setting at which the overload occurred. The processor measures the current drawn at these two settings and uses the measurement to calculate the desired operating setting of the current limiter—typically the setting at which the load will draw close to the maximum current allowable, without going over. This arrangement enables the power supply to converge rapidly to the optimal operating current, without the time delay that is associated with integrating controllers.

[0014] In some preferred embodiments of the present invention, a single processor is used to control the currents supplied to multiple loads served by a single power supply, as in Power over LAN systems, for example. The processor input is multiplexed to receive a sample of the current flowing to each of the loads in turn, and the control output of the processor is likewise multiplexed among the current limiters (which may be PWM or impedance-based) serving the different loads. Preferably, a common current sensor is used to sample the current on each of the load connections in turn, most preferably in a “round robin” under the control of the processor. Sharing the current sensing and processing resources in this manner is useful in reducing the cost of the power supply.

[0015] There is therefore provided, in accordance with a preferred embodiment of the present invention, power distribution apparatus, for controlling supply of a current from an electrical power source to at least one load, the apparatus including:

[0016] a current sensor, which is coupled to provide an indication of a magnitude of the current flowing to the at least one load; and

[0017] a current limiter, which is adapted, responsive to the indication, to apply a pulse width modulation to the current drawn from the source so as to maintain the magnitude of the current flowing to the at least one load within a predetermined limit.

[0018] Preferably, the current limiter includes a switch, having an input and an output, a controller, coupled to drive the switch to open and close so as to effectuate the pulse width modulation, and a smoothing circuit, coupled between the output of the switch and the at least one load. Most preferably, the switch includes a transistor, which is driven between cutoff and saturation states thereof in order to effectuate the pulse width modulation, wherein the transistor is selected from a group of devices consisting of a MOSFET, an IGBT and a bipolar transistor.

[0019] Additionally or alternatively, the controller is adapted, while the magnitude of the current is less than the predetermined limit, to hold the switch constantly closed, so that the current flows to the load substantially without applying the pulse width modulation thereto, and to drive the switch to apply the pulse width modulation to the current drawn from the source when the magnitude exceeds the predetermined limit. Preferably, the current limiter is adapted to apply the pulse width modulation with a duty cycle that is chosen so that the magnitude of the current flowing to the at least one load is approximately equal to or less than the predetermined limit.

[0020] Most preferably, the controller is adapted to drive the switch to apply the pulse width modulation with first and second trial duty cycles during respective first and second trial intervals, the controller being coupled to receive the indication of the magnitude of the current during the first and second trial intervals, the controller further being adapted to estimate, responsive to the indication, a relation between the duty cycles and the current, and to determine, based on the relation, a target duty cycle of the pulse width modulation to be applied by the current limiter so as to cause the magnitude of the current to be approximately equal to or less than the predetermined limit.

[0021] Preferably, the current sensor is adapted to provide digital samples indicative of the magnitude of the current, and the apparatus includes a controller, which is coupled to receive the digital samples and, responsive thereto, to determine a duty cycle of the pulse width modulation to be applied by the current limiter.

[0022] In a preferred embodiment, the at least one load includes a plurality of loads, the current limiter includes a plurality of current limiters, respectively coupled to apply the pulse width modulation to the respective currents, and the controller is coupled to receive the digital samples indicative of the magnitude of each of the respective currents and to determine respective duty cycles for all the current limiters responsive to the respective currents. Preferably, responsive to an overload in the current supplied to one of the loads, the controller is adapted to determine the duty cycle to be applied by the current limiter that is respectively coupled to apply the pulse width modulation to the current supplied to the one of the loads, while substantially no pulse width modulation is applied to the respective currents supplied to others of the loads for which there is no overload.

[0023] Typically, the electrical power source is coupled to supply the current to the plurality of loads over a local area network (LAN), wherein the current limiter and the current sensor are coupled to the LAN in a mid-span configuration, or are coupled to the LAN together with a switching hub in an end-span configuration.

[0024] In a further preferred embodiment, the source of electrical power is adapted to supply respective currents to a plurality of loads, and the current limiter includes a plurality of current limiters, respectively coupled to apply the pulse width modulation to the respective currents, and the current sampler is adapted to sample each of the loads in alternation, and to supply the indication with respect to the magnitude of each of the respective currents for use in controlling the current limiters.

[0025] There is also provided, in accordance with a preferred embodiment of the present invention, power distribution apparatus, for controlling supply of a current from an electrical power source to at least one load, the apparatus including:

[0026] a current limiter, which is coupled to controllably reduce a magnitude of the current supplied to the at least one load;

[0027] a current sensor, which is coupled to provide an indication of a magnitude of the current flowing to the at least one load; and

[0028] a controller, which is coupled to set the current limiter to an initial setting and to receive the indication from the current sensor of the magnitude of the current, the processor being adapted, responsive to the indication, to determine whether the magnitude of the current at the initial setting exceeds a predetermined maximum and if so, to set the current limiter to operate at first and second settings at which the current passed by the current limiter is less than the current at the initial setting, and to determine, using the current sensor, first and second magnitudes of the current at the first and second settings, respectively, of the current limiter, the controller being further adapted to determine a current limiting characteristic based on the first and second magnitudes, and to select a target setting of the current limiter responsive to the estimated current limiting characteristic, so as to reduce the magnitude of the current to less than the predetermined maximum.

[0029] There is additionally provided, in accordance with a preferred embodiment of the present invention, power distribution apparatus, for controlling supply of respective currents from an electrical power source to multiple loads, the apparatus including:

[0030] a plurality of current limiters, which are coupled to controllably reduce respective magnitudes of the currents supplied to the loads;

[0031] a current sensor, which is coupled to measure in alternation the respective currents supplied to all the loads; and

[0032] a controller, which is coupled to receive measurements of all the respective currents from the current sensor and, responsive thereto, to set the respective current limiters so as to maintain the currents supplied to the loads within a predetermined range.

[0033] There is further provided, in accordance with a preferred embodiment of the present invention, a method for controlling supply of power to at least one load, including:

[0034] measuring a magnitude of the current flowing from a power source to the at least one load; and

[0035] responsive to the measured magnitude, applying a pulse width modulation to the current drawn from the at least one load so as to maintain the magnitude of the current flowing to the at least one load within a predetermined limit.

[0036] There is moreover provided, in accordance with a preferred embodiment of the present invention, a method for controlling supply of power to at least one load, including:

[0037] supplying a current to the at least one load through a current limiter at an initial setting of the current limiter;

[0038] sampling the current to determine whether an initial magnitude of the current exceeds a predetermined maximum;

[0039] if the current exceeds the predetermined maximum, sampling the current to determine first and second magnitudes thereof at first and second settings, respectively, of the current limiter, at which first and second settings the current passed by the current limiter is less than the current at the initial setting;

[0040] estimating a current limiting characteristic based on the first and second magnitudes; and

[0041] selecting a target setting of the current limiter responsive to the estimated current limiting characteristic, so as to reduce the magnitude of the current to less than the predetermined maximum.

[0042] Preferably, the method includes sampling the current at the target setting to determine a new magnitude of the current, and adjusting the setting of the current limiter responsive to the new magnitude until the sampled current converges to a predetermined range. Most preferably, adjusting the setting includes using the new magnitude of the current determined at the target setting to revise the estimated current limiting characteristic, and selecting a new target setting of the current limiter based on the revised estimated characteristic.

[0043] In a preferred embodiment, the method includes determining a temperature of the current limiter while sampling the current, and saving the estimated current limiting characteristic for use in selecting the target setting on a future occasion upon which the current exceeds the predetermined maximum and the current limiter is operating at the determined temperature.

[0044] Additionally or alternatively, sampling the current at the target setting, and restoring the initial setting of the current limiter if the current is below a predetermined minimum. Most preferably, sampling the current includes sampling the current after a predetermined delay, and the method includes shutting off the current to the load if the current has not dropped below the predetermined minimum.

[0045] In a preferred embodiment, the current limiter includes a variable-impedance device, and the first and second settings correspond respectively to first and second impedance settings. Preferably, the variable-impedance device includes a transistor, and the first and second impedance settings correspond respectively to first and second gate voltages applied to the transistor.

[0046] In another preferred embodiment, the current limiter includes a pulse width modulator, which is coupled to apply pulse width modulation to the current supplied to the load, and the first and second settings correspond respectively to first and second duty cycles of the pulse width modulation. Preferably, estimating the current limiting characteristic includes determining fitting parameters so as to fit a curve to the first and second magnitudes as a function of the first and second settings.

[0047] In a further preferred embodiment, supplying the current includes supplying respective currents to a plurality of loads through respective current limiters, and estimating the current limiting characteristic includes using a single digital processor to estimate respective current limiting characteristics for two or more of the current limiters. Preferably, sampling the current includes sampling the respective currents supplied to the plurality of the loads using a single current sensing device to determine and provide the magnitudes of the respective currents to the digital processor.

[0048] Typically, supplying the respective currents includes supplying the currents to the plurality of loads over a local area network (LAN).

[0049] There is furthermore provided, in accordance with a preferred embodiment of the present invention, a method for supplying power to multiple loads, including:

[0050] coupling a power supply to supply respective currents to all the loads through respective current limiters;

[0051] measuring the respective currents in alternation using a common current sensor for all the loads; and

[0052] setting the respective current limiters responsive to the measured currents, so as to maintain the currents supplied to the loads within a predetermined range.

[0053] Preferably, measuring the respective currents includes alternating among the multiple loads in a round robin.

[0054] In a preferred embodiment, measuring the respective currents includes selecting one of the currents to measure, interrupting the currents other than the selected current, and measuring the current using the common current sensor while the other currents are interrupted.

[0055] In another preferred embodiment, measuring the respective currents includes selecting one of the currents to measure, making a first measurement of all the currents together using the common current sensor, interrupting the selected current, making a second measurement of all the currents together using the common current sensor while the selected current is interrupted, and taking a difference between the first and second measurements in order to measure the selected current.

[0056] In one embodiment, the current limiters include variable-impedance devices, and setting the respective current limiters includes applying respective impedance settings to the devices. In an alternative embodiment, the current limiters include pulse width modulators, which are coupled to apply pulse width modulation to the respective currents supplied to the loads, and setting the respective current limiters includes setting respective duty cycles of the pulse width modulators.

[0057] The present invention will be more fully understood from the following detailed description of the preferred embodiments thereof, taken together with the drawings in which:

BRIEF DESCRIPTION OF THE DRAWINGS

[0058]FIG. 1 is a block diagram that schematically illustrates a power distribution unit serving a load, in accordance with a preferred embodiment of the present invention;

[0059]FIG. 2 is a schematic circuit diagram showing current control circuitry used in a power distribution unit, in accordance with a preferred embodiment of the present invention;

[0060]FIG. 3 is a timing diagram that schematically illustrates waveforms generated in the circuitry of FIG. 2;

[0061]FIG. 4 is a block diagram that schematically shows details of a pulse width modulation (PWM) controller used in the control circuitry of FIG. 2;

[0062]FIG. 5 is a flow chart that schematically illustrates a method for setting a PWM duty cycle used for current control, in accordance with a preferred embodiment of the present invention;

[0063]FIGS. 6A and 6B are block diagrams that schematically illustrates master power distribution units serving multiple clients, in accordance with preferred embodiments of the present invention;

[0064]FIG. 7 is a block diagram that schematically illustrates current control circuitry used in the master power distribution units of FIGS. 6A and 6B, in accordance with a preferred embodiment of the present invention;

[0065]FIG. 8 is a block diagram that schematically illustrates current control circuitry used in the master power distribution units of FIGS. 6A and 6B, in accordance with another preferred embodiment of the present invention;

[0066]FIG. 9 is a schematic diagram showing current control circuitry used in a power distribution unit, in accordance with a further preferred embodiment of the present invention;

[0067]FIG. 10 is a flow chart that schematically illustrates a method for controlling current output by a power distribution unit, in accordance with a preferred embodiment of the present invention;

[0068]FIG. 11 is a Cartesian plot showing sampled load current as a function of time, which is output by a power distribution unit operating in accordance with the method of FIG. 10;

[0069]FIG. 12 is a flow chart that schematically illustrates a method for controlling current output by a power distribution unit, in accordance with another preferred embodiment of the present invention;

[0070]FIG. 13 is a block diagram that schematically illustrates current control circuitry used in a master power distribution unit serving multiple clients, in accordance with a preferred embodiment of the present invention;

[0071]FIGS. 14A and 14B are schematic circuit diagrams that illustrate control circuitry used by a master power distribution unit to limit the current that it supplies to multiple clients, in accordance with preferred embodiments of the present invention;

[0072]FIG. 15 is a flow chart that schematically illustrates a method for controlling current output by a master power distribution unit to multiple clients, in accordance with a preferred embodiment of the present invention; and

[0073]FIG. 16 is a flow chart that schematically illustrates a method for controlling current output by a master power distribution unit to multiple clients, in accordance with another preferred embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

[0074]FIG. 1 is a block diagram that schematically illustrates a power supply system 20 with digital current control, in accordance with a preferred embodiment of the present invention. For the sake of simplicity, system 20 is shown as comprising a master power distribution unit 22, which provides DC power to a single client 24. In practical applications, particularly in the context of Power over LAN systems, master power distribution unit 22 may serve as a power hub, to provide power to multiple clients, such as Ethernet terminal devices receiving power from the hub over a LAN. Unit 22 may be integrated with the LAN in either a mid-span or an end-span configuration (as shown below in FIGS. 6A and 6B). Some aspects of the present invention are applicable both to such multi-client environments and to power supplies that drive a single load, as shown in FIG. 1. Other aspects of the present invention, described with reference to certain of the figures that follow, provide solutions that are specific to multi-client applications.

[0075] Client 24 is shown here as comprising a load 26, which typically comprises, for example, operating circuits of a terminal device and a storage capacitor 28. The capacitor ensures that once the circuits are up and running, they receive a smooth supply of current at constant voltage, notwithstanding any transient fluctuations that may occur in delivery of power from master power distribution unit 22. When client 24 is first turned on, capacitor 28 will draw a high current from unit 22, until the capacitor is charged to the full supply voltage. Thereafter, if client 24 draws a current that is outside the operating normal range expected of load 26, the overload current is probably due to a short circuit or other malfunction.

[0076] Master power distribution unit 22 should therefore be designed to allow client 24 to draw a high current for a limited period, during which capacitor 28 is charging, but to shut off current to the client if the high current persists for too long, or if the current exceeds some maximum level. (This function is commonly known as “inrush current limiting.”) Typically, as described in the above-mentioned Application Note, a cutoff current level, I_(CUT), and a time limit, T_(CUT), are defined, such that if the current drawn by client 24 exceeds I_(CUT) for a period longer than T_(CUT), the current to the client is shut off. A higher current limit level, I_(LIM), is also defined, such that if the current drawn by the client exceeds I_(LIM) for any period of time, the current is likewise limited or shut off. In other words, even during the inrush current period, the load current is not allowed to exceed I_(LIM). Typically, I_(CUT) is set to be ¾ of I_(LIM), with the actual values chosen for these parameters depending on the particular characteristics of power distribution unit 22 and client 24. Exemplary values of these parameters in a Power over LAN system supplying 48 VDC are I_(LIM)=500 mA, I_(CUT)=350 mA and T_(CUT)=50 ms.

[0077] The elements of master power distribution unit 22 that are used to implement these current limiting functions are shown generally in FIG. 1. Unit 22 receives current from a power source 30, which supplies a constant DC input voltage, V_(IN), typically 48 V, as noted above. A current limiter 32 maintains the current drawn from source 30 by client 24 within the appropriate limits, preferably using a method of pulse width modulation (PWM), which is described in detail hereinbelow. The operation of limiter 32 is regulated by a digital controller 34, based on an input provided by a current sensor 36. The controller compares the current level determined by sensor 36 to preset values of I_(CUT) and I_(LIM), and controls limiter 32 accordingly.

[0078] For convenience of illustration, current limiter 32 is shown in FIG. 1 to be connected on the positive supply line between power source 30 and client 24, while current sensor 36 is located on the ground return. In practice, however, both the current limiter and the current sensor may be located on either the positive supply line or the ground return, in any combination. The location of the current limiter and the current sensor on one or the other of these lines in the figures that follow is chosen solely for purposes of illustration and not by way of limitation.

[0079]FIG. 2 is a schematic circuit diagram showing details of master supply 22, in accordance with a preferred embodiment of the present invention. Current limiter 32 comprises a switch 40, which opens and closes under the control of a PWM waveform provided by controller 34. Typically, switch 40 comprises a transistor, preferably a MOSFET device, such as an IRLR130AT device, produced by Fairchild Semiconductor. Alternatively, switch 40 may comprise a bipolar transistor, such as the Fairchild TIP117, or an IGBT device, such as the Fairchild FGB20N6S2D. The PWM waveform is applied to the gate of the device in order to drive it between cutoff and saturation states with a duty cycle set by controller 34. Controller 34 determines the PWM duty cycle depending on a sense voltage V_(S) provided by current sensor 36, which is implemented here as a resistor R_(S). An inductor 42 (typically 150 μH, 1A), a capacitor 44 (220 μF, 100V) and a diode 46 (US1G type) are used to rectify and smooth the output of switch 40.

[0080] Limiter 32 has three different operating modes. In the off mode, switch 40 is open, so that load 26 is disconnected from power source 30. This mode is used when client 24 is not operating, or when power to the client is shut off for various reasons, such as an overload or a command or logic output indicating that the client should not receive power. In the normal operating mode, on the other hand, switch 40 is closed, and a continuous current flows through load 26. Ignoring negligible voltage drops over switch 40 and inductor 42, the voltage supplied to load 26, V_(OUT), is nearly equal to the input voltage under these conditions:

V _(OUT) =V _(IN) −I _(LOAD) ×R _(S),

[0081] since typically R_(S)<<R_(LOAD). Controller 34 monitors V_(S)=I_(LOAD)×R_(S). As long as I_(LOAD) stays within the I_(LIM) and I_(CUT) criteria noted above, the controller allows normal operation to continue.

[0082] When controller 34 determines that client 24 is drawing excessive current, it switches to the current-limiting mode. In this mode, the controller drives switch 40 to apply PWM to the supply current I_(IN), so that limiter 32 reduces the output voltage V_(OUT) to the client. If the overload current is due to charging of capacitor 28, reducing the output voltage will resolve the over-current. After sufficient time has passed for the capacitor to charge, controller 34 will return limiter 32 to the normal operating mode, in which switch 40 is constantly closed. If reducing the output voltage does not resolve the overload current within a sufficient period of time, due to a short circuit, for example, controller 34 may turn switch 40 off.

[0083]FIG. 3 is a timing diagram that schematically shows waveforms generated at different points in supply 22 shown in FIG. 2, while limiter 32 is operating in the current limiting mode. When switch 40 is closed, the voltage difference V_(X)=V_(OUT)−V_(IN) is applied across inductor 42, causing a linearly-increasing current to flow through the inductor, as shown in the figure. When the switch is opened, the inductor current continues to flow, now linearly decreasing, with diode 46 completing the circuit. Capacitor 44 acts as an energy “flywheel,” smoothing the sawtooth ripple of the inductor current. The level of the output current to the load is determined by the duty cycle of switch 40:

I _(LOAD) =V _(IN)×DutyCycle/R _(LOAD).

[0084] Controller 34 determines the load current from the sample voltage V_(S), as described above, and sets the duty cycle in order to maintain the load current within the applicable limits.

[0085] Note that under all conditions, switch 40 is either fully open or fully closed. In either of these states, the power dissipation of the switch is far less than that of a current-limiting transistor operating in its linear region. Therefore, power distribution unit 22 limits the current supplied to the load with much greater efficiency and far fewer thermal problems than current limiters known in the art.

[0086]FIG. 4 is a block diagram that schematically shows details of controller 34, in accordance with a preferred embodiment of the present invention. The sense voltage V_(S) is sampled and digitized by an analog/digital (A/D) converter 50, which provides the digital sample values to an embedded processor 52. This processor may be implemented either as a programmable microprocessor with suitable software, or as hard-wired logic. By comparing the sample values to one or more preset limit values, processor 52 determines a target duty cycle value, between 0 and 100%. It inputs this value to a PWM controller 54, which generates a square wave with the desired duty cycle, to drive the gate of switch 40. As processor 52 continues to monitor the sample values, it may increase or decrease the duty cycle value as necessary to maintain the current I_(LOAD) within the desired operating range.

[0087]FIG. 5 is a flow chart that schematically illustrates a method implemented by processor 52 for determining the duty cycle to be applied by PWM controller 54, in accordance with a preferred embodiment of the present invention. This method is advantageous in terms of speed of convergence, but other methods may also be applied for determining the PWM duty cycle, as will be apparent to those skilled in the art. The present method uses duty cycle values referred to hereinbelow as DC1, DC2 and DC3, as well as sampled values of V_(S)—referred to as Y1 and Y2—which are provided by A/D converter 50. The duty cycle values and sample values are stored in internal registers of processor 52, as are the current limit values L_(LIM) and I_(CUT). At an initial step 60, DC1 is set to 100%, and this duty cycle value is fed to PWM controller 54, so that switch 40 is continuously closed. The controller receives and saves sample values from A/D converter 50, at a sampling step 62, and compares the values to I_(LIM), at a limit checking step 64. As long as the sample values do not exceed the limit, switch 40 remains closed.

[0088] If the sample values exceed I_(LIM), processor 52 initiates a curve-fitting procedure to determine how far the PWM duty cycle should be reduced. It is assumed for this purpose that the current I_(LOAD) is approximately linearly dependent on the duty cycle, i.e., that I_(LOAD)≈a×DutyCycle+b. Thus, by determining the values of the constants a and b, the processor can rapidly find the duty cycle setting for PWM controller 54 that will give the desired load current. To determine a and b, processor 52 sets the duty cycle of the PWM controller to two different trial values, for example, a first value DC1=70%, at a first trial step 66, and a second value DC2 that is 5% less than the first value, at a second trial step 68. At each of these steps, the processor receives and saves the value of the sample voltage V_(S) provided by A/D converter 50, in registers Y1 and Y2. The processor calculates the values of a and b based on the measured values of Y1 and Y2, together with the known duty cycles DC1 and DC2, at a fitting step 70. The duty cycle setting that is expected to give I_(LOAD)=I_(LIMIT) is then determined, at a duty cycle setting step 72, to be DC3=(I_(LIM)−b)/a. This setting should allow client 24 to draw the maximum permissible current.

[0089] To check that the duty cycle has been set correctly, sampling step 62 is preferably repeated, and the sample value is compared to the lower limit I_(CUT), at a lower limit checking step 74. If the sample value is below I_(CUT), it means that the current overload has been resolved. (Preferably, the lower limit is actually set a bit below I_(CUT), say 10 mA below a typical I_(CUT) level of 350 mA, to ensure that I_(LOAD) is below the overload range.) In this case, processor 52 returns the duty cycle setting to 100% for normal operation, and the procedure continues back at step 60.

[0090] If the sample value is greater than the lower limit at step 74, it is compared to the upper limit, I_(LIM), at an upper limit checking step 76. In this case, the limit used for comparison is preferably slightly greater than I_(LIM), in order to maintain stability and avoid oscillations due to noise or other perturbations. If the sample value is below the limit, processor 52 concludes that the load current is within the legal overload range. As long as this is the case, the processor continues to repeat steps 62, 74 and 76, until either the overload is resolved at step 74, or it becomes exacerbated at step 76.

[0091] If the sample value evaluated at step 76 is greater than the upper limit, the fitting process of steps 68, 70 and 72 is repeated in order to find the correct duty cycle setting, which is presumably lower than the current setting. In this case, the current duty cycle setting and the corresponding sample value can be used as the first data point (DC1, Y1), so that it is not necessary to repeat step 66. Only the second data point (DC2, Y2) need be sampled, at step 68. (Alternatively, the current duty cycle setting with its corresponding sample value could be used together with the previous data points to refine the fitting process, so that step 68 could be skipped as well.) New fitting parameters a and b are then determined at step 70, leading to setting a new duty cycle value at step 72. Optionally, multiple data points (DCx, Yx) can be used to perform a quadratic or higher-order fitting procedure, in order to find an optimal duty cycle value.

[0092]FIGS. 6A and 6B are block diagrams that schematically illustrate Power over LAN systems based on the principles described above. Here, a master power distribution unit 80 provides DC power to multiple clients 82 over a LAN 84. FIG. 6A shows an end-span configuration, in which unit 80 is integrated with a switching hub 81, while FIG. 6B shows a mid-span configuration, in which unit 80 is located between a switching hub 85 and clients 82. In either case, unit 80 may be implemented simply by replicating current sensor 36, controller 34 and current limiter 32, as described above, for each client 82 served by the master power distribution unit. Preferably, however, in order to reduce the cost of the unit, some of the functions of these elements are shared among the connections serving the different clients.

[0093]FIG. 7 is a block diagram that schematically shows details of one such sharing scheme, in accordance with a preferred embodiment of the present invention. In this embodiment, A/D converter 50 and processor 52 in controller 34 are multiplexed to serve multiple connections. An analog multiplexer 90 receives sense voltages V_(S1), V_(S2), . . . , V_(SN) from respective current sensors 36 on the different connections. (As shown in FIG. 14, it is also possible for a single current sensor to be shared among the connections.) Processor 52 selects each of the multiplexer inputs in turn, preferably in a round robin, in order to sample and evaluate the load current level on all the connections. The measured current levels are compared to respective limit values, which may be all the same or different for the different connections. Based on the current levels and limits, processor 52 determines the appropriate duty cycle value to be applied to each connection.

[0094] A demultiplexer 94 passes the duty cycle values from processor 52 to respective latches 96. In this embodiment, each connection has its own PWM controller 54, which generates the appropriate square wave based on the duty cycle value in the respective latch. These square waves are used to drive the current-limiting switches on the different connections.

[0095]FIG. 8 is a block diagram that schematically illustrates another sharing scheme, in accordance with an alternative embodiment of the present invention. In this case, a multi-channel PWM controller 98 is used to drive the current-limiting switches on multiple channels, via a demultiplexer 100. This embodiment is based on the observation that under typical operating conditions, most of clients 82 are either shut off or operating normally, and no more than one or a few clients are likely to be in the current-limiting mode. Thus, when processor 52 detects a current overload on one of the connections, it determines the appropriate duty cycle to apply to the particular connection and passes the duty cycle value to controller 98. Demultiplexer 100 couples the square wave that is output by controller 98 to the current-limiting switch of the appropriate connection. The remaining switches are latched in either the normal on or off mode as appropriate.

[0096] In the embodiment of FIG. 8, processor 52 should also be programmed to deal with unusual situations in which overload conditions occur on two or more connections simultaneously. One possibility in this case is to switch demultiplexer 100 rapidly between the different connections that must be serviced. Another option is to service only one of the overloaded connections, while temporarily shutting down the others. Alternative solutions will be apparent to those skilled in the art.

[0097]FIG. 9 is a schematic circuit diagram showing details of master supply 22, in accordance with another preferred embodiment of the present invention. Current limiter 32 in this case comprises a variable-impedance device, such as a FET, placed in series with the load, as shown in FIG. 1. A/D converter 50 samples and digitizes the sense voltage V_(S) provided by current sensor 36, which is in this example implemented as a series resistor. Processor 52 performs a curve-fitting operation, similar to that described above with reference to FIG. 5, in order to determine the optimal operating point of limiter 32. The processor outputs this operating point as a digital control value to a digital/analog (D/A) converter 102, which converts the digital value to the proper analog gate voltage to drive limiter 32.

[0098] The curve fitting procedure, which is described below with reference to FIGS. 10 and 12, is preferably based on measurements of the load current (represented by V_(S)) at two different operating points of limiter 32. This fitting strategy assumes that the limiter is operating in a linear range, i.e., at a gate voltage substantially below the saturation level. Alternatively, three or more operating points may be evaluated in order to perform a higher-order fit, and/or to increase the confidence of measurement. Appropriate methods of curve fitting and of setting the operating point of the limiter based on the fitting parameters will be apparent to those skilled in the art.

[0099] The fitting parameters determined for a given limiter 32 may be stored and reused during subsequent operation of supply 22, as long as the underlying characteristics of the limiter do not change. It is well known, however, that the transfer characteristics of most transistors do vary as a function of temperature (as well as of other factors, such as aging). This problem may be overcome by carefully controlling the temperature of supply 22. Alternatively, a temperature sensor (not shown) may be placed in supply 22, near the location of limiter 32, and the fitting parameters for the limiter may be determined and stored as a function of the temperature. Thereafter, when it is necessary to activate limiter 32, processor 52 checks the temperature and looks up the necessary parameters on this basis.

[0100]FIG. 10 is a flow chart that schematically illustrates a method implemented by processor 52 for setting the operating point of limiter 32, in accordance with a preferred embodiment of the present invention. For the sake of clarity, it is assumed here that the limiter is a FET, and that the operating point corresponds to the FET gate voltage (VG). In a manner similar to the method of FIG. 5, processor 52 uses internal registers VG1, VG2 and VG3 to hold gate voltage values that it uses in its fitting and control operations, and registers Y1 and Y2 to hold sampled values of the sense voltage V_(S) provided by sensor 36 via A/D converter 50. Although this method is described here with reference to FET operating parameters, adaptation of the method for use in determining and setting operating parameters of other types of current limiters is straightforward.

[0101] Upon initiation of the operation of supply 22, the gate voltage of limiter 32 is set high, typically to a value VG1=5 V, at an initial setting step 110. At this value, the resistance of the limiter is near zero, so that the current flow to the load is fully on. Processor 52 samples the sense voltage, at a sampling step 112, and compares the sampled value to the current limit I_(LIM), at a comparison step 114. As long as the sampled value is below the level of I_(LIM), the gate voltage remains at its starting value, and steps 112 and 114 are repeated continually.

[0102] If the sampled value of the sense voltage exceeds I_(LIM), processor 52 checks to determine whether the fitting parameters for limiter 32 are already known, at a parameter recall step 116. If the parameters are not known, the processor must perform a curve fitting procedure in order to calculate them. For this purpose, the gate voltage is set to two different trial values, substantially lower than the starting value, at first and second trial steps 118 and 120. For example, at step 118, the gate voltage may be set to VG1=2.4 V, while at step 120, the gate voltage is set to VG2=VG1−0.1 V. The sense voltage is sampled at both these operating points, and the resulting measurements, Y1 and Y2, are used to calculate the linear fitting parameters a and b, at a fitting step 122. These values of a and b are used to determine the appropriate gate voltage VG3 to use for optimal performance of supply 22, at a target voltage setting step 124.

[0103] Alternatively, if processor 52 finds at step 116 that the values of a and b are already known (taking into account any temperature dependence, as noted above), it recalls these values from its memory and jumps directly to step 124. In either case, the gate voltage is preferably set at step 124 so that the output current I_(LOAD) drawn from supply 22 is close to the limit I_(LIM).

[0104] After setting the gate voltage to the desired target value, processor 52 again samples the sense voltage, at a resampling step 126. Based on the sample value, the processor checks to determine whether the load current has now dropped below the level of I_(CUT)−10 mA, at a lower limit checking step 128, as in the method of FIG. 5. If so, it means that the overload situation has evidently been resolved, and processor 52 returns limiter 32 to its original, low-impedance state, at step 110. If not, the processor checks the sense voltage sample value against I_(LIM), at an upper limit checking step 130. Preferably, a hysteresis factor is added to I_(LIM) (10 mA in the present example) to maintain loop stability and avoid oscillations. As long as the load current is below this limit, processor repeats steps 126, 128 and 130 until the current overload is resolved, such that the load current drops below I_(CUT).

[0105] If the load current is found at step 130 to be over the upper limit, the curve fitting process is repeated in order to find better values of the fitting parameters a and b. The present value of the gate voltage (VG3) and the sense voltage sample value actually measured at this gate voltage can be used as one data point for the purposes of fitting, so that step 118 can now be skipped. A second data point is found at step 120, and the new values of a and b are determined, based on the two data points, at step 122. These values are used to set a new gate voltage at step 124. The method then continues as described above.

[0106]FIG. 11 is a schematic Cartesian plot showing the sense voltage V_(S) measured over time as the method of FIG. 10 is carried out. Typically, I_(LIM) is set to be 500 mA, and V_(S) is measured using a 1 ohm resistor, so that the limit level marked in the figure is approximately 0.5 V. At time T₀ the load is switched on, leading to detection of a current overload (step 114). At time T₁, processor 52 reduces the gate voltage of limiter 32 to the VG1 value (step 118), followed at time T₂ by a further reduction to the VG2 value (step 120). Based on the values of V_(S) measured at these two settings, the processor determines the fitting parameters (step 122) and then sets the gate voltage to its target value at time T₃ (step 124). The entire process, from T₀ to T₃, typically takes less than 2 μs.

[0107]FIG. 12 is a flow chart that schematically illustrates a method used by processor 52 for setting the operating point of limiter 32, in accordance with another preferred embodiment of the present invention. In its initial iteration through steps 110 to 124, this method is substantially identical to that shown in FIG. 11. In the present embodiment, however, the closed-loop control provided by steps 126, 128 and 130 is replaced by an open-loop method. According to this method, after setting the target gate voltage at step 124, processor 52 waits for a predetermined period of time, typically about 50 ms. This much time is typically sufficient for a “normal” current overload, due to charging of capacitor 28, for example, to be resolved. After the waiting period is over, the processor checks the present value of V_(S), at a delayed sampling step 132. Based on this value, the processor compares the load current to I_(CUT), at a lower limit checking step 134. If the load current has dropped below this level, it means that the overload has been resolved, and the gate voltage is returned to its original value, for low-impedance operation of limiter 32, at step 110, as described above.

[0108] If the load current is still greater than I_(CUT) at the end of the waiting period, however, it is probably the result of a malfunction in the load or a short circuit in the load or the line connecting to it. In this case, the gate voltage is set to zero, shutting off limiter 32, at a shutoff step 136. The main reason for imposing the time limit at step 132 and then immediately shutting off the current at step 136 is that limiter 32 may not be able to withstand extended power dissipation at high current. The current is therefore turned off at step 136 in order to avoid thermal damage to supply 22. In this case, processor 52 typically marks the connection as faulty. It may retry the connection after a longer waiting period, say 5 sec, in order to permit automatic recovery from accidental faults. Alternatively, instead of complete shutoff, the current may be allowed to continue to run at a very low level, which limiter 32 is able to sustain. As a further alternative, the closed-loop method of steps 120 through 130 in FIG. 10 may be allowed to run until either the load current drops below I_(CUT) or the waiting period has expired, whichever comes first.

[0109]FIG. 13 is a block diagram that schematically shows details of controller 34 implementing a scheme for sharing processing resources among multiple client connections of a master supply, in accordance with a preferred embodiment of the present invention. This embodiment is similar to that shown in FIGS. 6 and 7 above, in that a single processor 52 controls the current supplied to all the client loads, using a respective limiter 32 on each load connection. In the present embodiment, the limiters comprise variable-impedance elements, such as FETs, as shown in FIG. 9. Latches 96 hold the respective gate voltage value that is set by processor 52 for each of the limiters. D/A converters 102 convert the voltage values to analog voltages, which are applied to the gates of the respective limiters.

[0110]FIG. 14A is a block diagram showing a system 150 for supplying power to multiple clients 82, in accordance with a further preferred embodiment of the present invention. System 150 comprises a master supply 152, which, as in the preceding embodiment, uses a single controller 156 to operate multiple current limiters 32 on the different client connection channels. Substantially any type of limiter may be used in this context, such as either PWM-based limiters of the type shown in FIG. 2, or variable-impedance limiters, as shown in FIG. 9.

[0111] In contrast to the previous embodiments, supply 152 uses a single current-sensing device 154 to monitor the load current and detect overloads on all the channels. Device 154 may comprise a sense resistor, for example, as shown in FIGS. 2 and 9, or it may comprise other sorts of current-sensing element, such as an inductive current sensor. Further alternatively, the current may be measured using a Hall effect sensor or by measuring the drain/source voltage V_(DS) of a FET through which the current passes. Since the drain/source resistance R_(DS) of the FET is known, the current I is given simply by V_(DS)/R_(DS). Details of this technique are described, for example, by Lenk in Fairchild Semiconductor Application Bulletin AB-20, entitled “Optimum Current Sensing Techniques in CPU Converters” (1999), which is incorporated herein by reference.

[0112]FIG. 14B is a block diagram that schematically illustrates a system 158 for supplying power to multiple clients 82, in accordance with another preferred embodiment of the present invention. This embodiment is similar to that shown in FIG. 14A, except that here a master power distribution unit 159 is configured so that current-sensing device 154 and current limiters 32 are located on the negative side of power supply 30, rather than on the positive side as in system 150.

[0113] The use of the single current-sensing device 154 to serve multiple clients reduces the part count of power distribution units 152 and 159, and thus reduces their cost, as well. Preferably, the current-sensing device is applied to each of the connections in turn, in a round robin. A number of possible sharing schemes for this purpose are described hereinbelow.

[0114]FIG. 15 is a flow chart that schematically illustrates a method for current monitoring using shared sensing device 154, in accordance with a preferred embodiment of the present invention. This method makes use of the fact that each client has its own storage capacitor 28, which provides a sufficient voltage to load 26 even when current on the respective connection is temporarily interrupted. The method steps cyclically through all N connections served by supply 152, from channel 1 through N, and repeating indefinitely thereafter.

[0115] After all of capacitors 28 have been charged, controller 156 shuts off all of limiters 32, except the limiter serving the channel currently under test, at a shutoff step 160. The channel under test is referred to here by the index I. In this situation, sensing device 154 measures the current drawn from master supply 152, at a current measuring step 162. Because of the setting of limiters 32, the current is supplied only to channel I and is indicative of the possible presence of an overload on the channel. In the event that controller 156 detects an overload, it adjusts the setting of the current limiter for channel I, at an adjustment step 164, preferably using one of the methods described above. All the channels are then again turned on, at a reopening step 166, to allow capacitors 28 to recharge before proceeding. The channel index I is incremented, at a next channel step 168, and steps 160 through 166 are repeated for the next channel. When I reaches the maximum value, N, it wraps back to 1 for the next iteration.

[0116]FIG. 16 is a flow chart that schematically illustrates another method for current monitoring using shared sensing device 154, in accordance with a preferred embodiment of the present invention. This method assumes that the rate at which device 154 samples the current is much greater than the typical rates of changes of the currents in the different channels. Device 154 first measures the total current flowing through all of channels 1 through N, at a total measurement step 170, with all of limiters 32 set to allow the current to flow. The limiter of the channel to be measured (channel I) is shut off, at a channel shutoff step 172, and device 154 measures the current drawn by the remaining channels, at a remainder measurement step 174. The current drawn by channel I is then calculated simply by taking the difference of the current measurements made at steps 170 and 174.

[0117] Controller 156 checks the difference of the currents against the applicable current limit I_(LIM) for the channel under measurement, at a limit checking step 178. If the current is within the limit, the channel index is incremented, at a next channel step 180, and the process continues with the next channel, beginning again from step 170. If the current is over the limit, controller 156 checks to make sure that the current is not greater than the maximum that is possible on a single channel, at a range checking step 182. An out-of-range difference measurement at this step is probably indicative of an error in the measurement process. For example, if the currents on multiple channels changed sharply during the time between steps 170 and 174, the current difference calculated at step 176 will be out of range. In such a case, the present measurement results are invalid, and the measurement process must be restarted, at a restart step 184. The measurements then continue from step 170, resuming with the same channel at which they were interrupted.

[0118] If the difference of the currents measured for channel I is greater than I_(LIM) but not out of range, the setting of limiter 32 for channel I is adjusted to reduce the current to within I_(LIM), at an adjustment step 186. The limiter is then turned on at this setting, allowing current to flow from supply 152 to channel I, at a reopening step 188. The process continues with the next channel at step 180.

[0119] When limiters 32 are based on PWM, as in the embodiment of FIG. 2, sensing device 154 may take advantage of the PWM to measure the current drawn by each of the channels without having to shut off any of the limiters during measurement. This type of measurement can be accomplished by operating switches 40 in PWM mode at all times, with respective gate voltage waveforms (as shown in FIG. 3) that do not overlap with one another. The duty cycle of each channel and the current drawn from the power supply during the time that the respective gate voltage is high are together indicative of the current drawn by the respective client.

[0120] It will be appreciated that the preferred embodiments described above are cited by way of example, and that the present invention is not limited to what has been particularly shown and described hereinabove. Rather, the scope of the present invention includes both combinations and subcombinations of the various features described hereinabove, as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description and which are not disclosed in the prior art. 

1. Power distribution apparatus, for controlling supply of a current from an electrical power source to at least one load, the apparatus comprising: a current sensor, which is coupled to provide an indication of a magnitude of the current flowing to the at least one load; and a current limiter, which is adapted, responsive to the indication, to apply a pulse width modulation to the current drawn from the source so as to maintain the magnitude of the current flowing to the at least one load within a predetermined limit.
 2. Apparatus according to claim 1, wherein the current limiter comprises: a switch, having an input and an output; a controller, coupled to drive the switch to open and close so as to effectuate the pulse width modulation; and a smoothing circuit, coupled between the output of the switch and the at least one load.
 3. Apparatus according to claim 2, wherein the switch comprises a transistor, which is driven between cutoff and saturation states thereof in order to effectuate the pulse width modulation.
 4. Apparatus according to claim 3, wherein the transistor is selected from a group of devices consisting of a MOSFET, an IGBT and a bipolar transistor.
 5. Apparatus according to claim 2, wherein the controller is adapted, while the magnitude of the current is less than the predetermined limit, to hold the switch constantly closed, so that the current flows to the load substantially without applying the pulse width modulation thereto, and to drive the switch to apply the pulse width modulation to the current drawn from the source when the magnitude exceeds the predetermined limit.
 6. Apparatus according to claim 5, wherein the current limiter is adapted to apply the pulse width modulation with a duty cycle that is chosen so that the magnitude of the current flowing to the at least one load is approximately equal to or less than the predetermined limit.
 7. Apparatus according to claim 6, wherein the controller is adapted to drive the switch to apply the pulse width modulation with first and second trial duty cycles during respective first and second trial intervals, the controller being coupled to receive the indication of the magnitude of the current during the first and second trial intervals, the controller further being adapted to estimate, responsive to the indication, a relation between the duty cycles and the current, and to determine, based on the relation, a target duty cycle of the pulse width modulation to be applied by the current limiter so as to cause the magnitude of the current to be approximately equal to or less than the predetermined limit.
 8. Apparatus according to claim 1, wherein the current sensor is adapted to provide digital samples indicative of the magnitude of the current, and comprising a controller, which is coupled to receive the digital samples and, responsive thereto, to determine a duty cycle of the pulse width modulation to be applied by the current limiter.
 9. Apparatus according to claim 8, wherein the at least one load comprises a plurality of loads, and wherein the current limiter comprises a plurality of current limiters, respectively coupled to apply the pulse width modulation to the respective currents, and wherein the controller is coupled to receive the digital samples indicative of the magnitude of each of the respective currents and to determine respective duty cycles for all the current limiters responsive to the respective currents.
 10. Apparatus according to claim 9, wherein responsive to an overload in the current supplied to one of the loads, the controller is adapted to determine the duty cycle to be applied by the current limiter that is respectively coupled to apply the pulse width modulation to the current supplied to the one of the loads, while substantially no pulse width modulation is applied to the respective currents supplied to others of the loads for which there is no overload.
 11. Apparatus according to claim 9, wherein the electrical power source is coupled to supply the current to the plurality of loads over a local area network (LAN).
 12. Apparatus according to claim 11, wherein the current limiter and the current sensor are coupled to the LAN in a mid-span configuration.
 13. Apparatus according to claim 11, wherein the current limiter and the current sensor are coupled to the LAN together with a switching hub in an end-span configuration.
 14. Apparatus according to claim 1, wherein the source of electrical power is adapted to supply respective currents to a plurality of loads, and wherein the current limiter comprises a plurality of current limiters, respectively coupled to apply the pulse width modulation to the respective currents, and wherein the current sampler is adapted to sample each of the loads in alternation, and to supply the indication with respect to the magnitude of each of the respective currents for use in controlling the current limiters.
 15. Power distribution apparatus, for controlling supply of a current from an electrical power source to at least one load, the apparatus comprising: a current limiter, which is coupled to controllably reduce a magnitude of the current supplied to the at least one load; a current sensor, which is coupled to provide an indication of a magnitude of the current flowing to the at least one load; and a controller, which is coupled to set the current limiter to an initial setting and to receive the indication from the current sensor of the magnitude of the current, the processor being adapted, responsive to the indication, to determine whether the magnitude of the current at the initial setting exceeds a predetermined maximum and if so, to set the current limiter to operate at first and second settings at which the current passed by the current limiter is less than the current at the initial setting, and to determine, using the current sensor, first and second magnitudes of the current at the first and second settings, respectively, of the current limiter, the controller being further adapted to determine a current limiting characteristic based on the first and second magnitudes, and to select a target setting of the current limiter responsive to the estimated current limiting characteristic, so as to reduce the magnitude of the current to less than the predetermined maximum.
 16. Apparatus according to claim 15, wherein the controller is adapted to determine, using the current sensor, a new magnitude of the current at the target setting of the current limiter, and to adjust the setting of the current limiter responsive to the new magnitude until the sampled current converges to a predetermined range.
 17. Apparatus according to claim 16, wherein the controller is adapted to use the new magnitude of the current determined at the target setting to revise the estimated current limiting characteristic, and to select a new target setting of the current limiter based on the revised estimated characteristic.
 18. Apparatus according to claim 15, wherein the controller is adapted to determine a temperature of the current limiter while sampling the current, and to save the estimated current limiting characteristic for use in selecting the target setting on a future occasion upon which the current exceeds the predetermined maximum and the current limiter is operating at the determined temperature.
 19. Apparatus according to claim 15, wherein the controller is adapted to determine, using the current sensor, the magnitude of the current at the target setting, and to restore the initial setting of the current limiter if the current is below a predetermined minimum.
 20. Apparatus according to claim 19, wherein the controller is adapted to determine the magnitude of the current at the target setting after a predetermined delay, and to control the current limiter so as to shut off the current to the at least one load if the current has not dropped below the predetermined minimum.
 21. Apparatus according to claim 15, wherein the current limiter comprises a variable-impedance device, and wherein the first and second settings correspond respectively to first and second impedance settings.
 22. Apparatus according to claim 21, wherein the variable-impedance device comprises a transistor, and comprising a digital/analog converter, which is coupled to receive the first and second impedance settings from the controller and, responsive thereto, to apply respective first and second gate voltages to the transistor.
 23. Apparatus according to claim 15, wherein the current limiter comprises a pulse width modulator, which is coupled to apply pulse width modulation to the current supplied to the at least one load, and wherein the first and second settings correspond respectively to first and second duty cycles of the pulse width modulation.
 24. Apparatus according to claim 15, wherein the controller is adapted to determine fitting parameters so as to fit a curve to the first and second magnitudes as a function of the first and second settings.
 25. Apparatus according to claim 15, wherein the at least one load comprises a plurality of loads, and wherein the current limiter comprises a plurality of current limiters, respectively coupled to reduce the magnitudes of the respective currents, and wherein the controller comprises a single digital processor, which is adapted to estimate respective current limiting characteristics for two or more of the current limiters.
 26. Apparatus according to claim 25, wherein the current sensor comprises a single current sensing device, which is coupled to sample the respective currents supplied to the plurality of the loads so as to provide the magnitudes of the respective currents to the digital processor.
 27. Apparatus according to claim 25, wherein the electrical power source is coupled to supply the current to the plurality of loads over a local area network (LAN).
 28. Apparatus according to claim 27, wherein the current limiter and the current sensor are coupled to the LAN in a mid-span configuration.
 29. Apparatus according to claim 27, wherein the current limiter and the current sensor are coupled to the LAN together with a switching hub in an end-span configuration.
 30. Power distribution apparatus, for controlling supply of respective currents from an electrical power source to multiple loads, the apparatus comprising: a plurality of current limiters, which are coupled to controllably reduce respective magnitudes of the currents supplied to the loads; a current sensor, which is coupled to measure in alternation the respective currents supplied to all the loads; and a controller, which is coupled to receive measurements of all the respective currents from the current sensor and, responsive thereto, to set the respective current limiters so as to maintain the currents supplied to the loads within a predetermined range.
 31. Apparatus according to claim 30, wherein the current sensor is coupled to alternate among the multiple loads in a round robin.
 32. Apparatus according to claim 30, wherein the controller is adapted to select one of the currents to measure, to set the current limiters to interrupt the currents other than the selected current, so that the current sensor measures the selected one of the currents while the other currents are interrupted.
 33. Apparatus according to claim 30, wherein the controller is adapted to select one of the currents to measure, to make a first measurement of all the currents together using the current sensor, and then to set the current limiters to interrupt the selected current and to make a second measurement of all the currents together using the current sensor while the selected current is interrupted, and to measure the selected current by taking a difference between the first and second measurements.
 34. Apparatus according to claim 30, wherein the current limiters comprise variable-impedance devices, and wherein the controller is adapted to set the respective current limiters by causing respective impedance settings to be applied to the devices.
 35. Apparatus according to claim 30, wherein the current limiters comprise pulse width modulators, which are coupled to apply pulse width modulation to the respective currents supplied to the loads, and wherein the controller is adapted to set respective duty cycles of the pulse width modulators.
 36. Apparatus according to claim 30, wherein the electrical power source is coupled to supply the current to the multiple loads over a local area network (LAN).
 37. Apparatus according to claim 36, wherein the current limiters and the current sensor are coupled to the LAN in a mid-span configuration.
 38. Apparatus according to claim 36, wherein the current limiters and the current sensor are coupled to the LAN together with a switching hub in an end-span configuration.
 39. A method for controlling supply of power to at least one load, comprising: measuring a magnitude of the current flowing from a power source to the at least one load; and responsive to the measured magnitude, applying a pulse width modulation to the current drawn from the at least one load so as to maintain the magnitude of the current flowing to the at least one load within a predetermined limit.
 40. A method according to claim 39, wherein applying the pulse width modulation comprises inputting the current to a switch, opening and closing the switch so as to effectuate the pulse width modulation, and smoothing an output of the switch.
 41. A method according to claim 40, wherein the switch comprises a transistor, and wherein opening and closing the switch comprises driving the transistor between cutoff and saturation states thereof.
 42. A method according to claim 40, wherein applying the pulse width modulation comprises, while the magnitude of the current is less than the predetermined limit, holding the switch constantly closed, so that the current flows to the at least one load substantially without applying the pulse width modulation thereto, and driving the switch to apply the pulse width modulation when the magnitude exceeds the predetermined limit.
 43. A method according to claim 42, wherein applying the pulse width modulation comprises driving the switch with a duty cycle that is chosen so that the magnitude of the current flowing to the at least one load is approximately equal to or less than the predetermined limit.
 44. A method according to claim 43, wherein applying the pulse width modulation comprises: controlling the switch so as to apply the pulse width modulation with first and second trial duty cycles during respective first and second trial intervals; measuring the magnitude of the current during the first and second trial intervals; estimating, responsive to the measured magnitude during the first and second trial intervals, a relation between the duty cycles and the current; and determining, based on the relation, a target duty cycle of the pulse width modulation to be applied by the switch so as to cause the magnitude of the current to be approximately equal to or less than the predetermined limit.
 45. A method according to claim 39, wherein applying the pulse width modulation comprises determining a duty cycle of the pulse width modulation responsive to the measured magnitude.
 46. A method according to claim 45, wherein the at least one load comprises a plurality of loads, and the current comprises respective currents supplied to the loads, and wherein measuring the magnitude of the current comprises determining the magnitude of each of the respective currents, and wherein determining the duty cycle comprises determining respective duty cycles for all the currents using a single digital processor.
 47. A method according to claim 46, wherein determining the duty cycle comprises, responsive to an overload in the current flowing to one of the loads, determining the duty cycle to be applied to the one of the loads, while substantially no pulse width modulation is applied to the currents supplied to others of the loads for which there is no overload.
 48. A method according to claim 46, wherein the current is supplied to the plurality of loads over a local area network (LAN).
 49. A method according to claim 39, wherein the at least one load comprises a plurality of loads, and the current comprises respective currents supplied to the loads, and wherein measuring the magnitude of the current comprises determining a respective magnitude of the current flowing to each of the loads in alternation using a single current sampling device, and wherein applying the pulse width modulation comprises modulating each of the currents responsive to the respective magnitude.
 50. A method for controlling supply of power to at least one load, comprising: supplying a current to the at least one load through a current limiter at an initial setting of the current limiter; sampling the current to determine whether an initial magnitude of the current exceeds a predetermined maximum; if the current exceeds the predetermined maximum, sampling the current to determine first and second magnitudes thereof at first and second settings, respectively, of the current limiter, at which first and second settings the current passed by the current limiter is less than the current at the initial setting; estimating a current limiting characteristic based on the first and second magnitudes; and selecting a target setting of the current limiter responsive to the estimated current limiting characteristic, so as to reduce the magnitude of the current to less than the predetermined maximum.
 51. A method according to claim 50, and comprising sampling the current at the target setting to determine a new magnitude of the current, and adjusting the setting of the current limiter responsive to the new magnitude until the sampled current converges to a predetermined range.
 52. A method according to claim 51, wherein adjusting the setting comprises using the new magnitude of the current determined at the target setting to revise the estimated current limiting characteristic, and selecting a new target setting of the current limiter based on the revised estimated characteristic.
 53. A method according to claim 50, and comprising determining a temperature of the current limiter while sampling the current, and saving the estimated current limiting characteristic for use in selecting the target setting on a future occasion upon which the current exceeds the predetermined maximum and the current limiter is operating at the determined temperature.
 54. A method according to claim 50, and comprising sampling the current at the target setting, and restoring the initial setting of the current limiter if the current is below a predetermined minimum.
 55. A method according to claim 54, wherein sampling the current comprises sampling the current after a predetermined delay, and comprising shutting off the current to the load if the current has not dropped below the predetermined minimum.
 56. A method according to claim 50, wherein the current limiter comprises a variable-impedance device, and wherein the first and second settings correspond respectively to first and second impedance settings.
 57. A method according to claim 56, wherein the variable-impedance device comprises a transistor, and wherein the first and second impedance settings correspond respectively to first and second gate voltages applied to the transistor.
 58. A method according to claim 50, wherein the current limiter comprises a pulse width modulator, which is coupled to apply pulse width modulation to the current supplied to the load, and wherein the first and second settings correspond respectively to first and second duty cycles of the pulse width modulation.
 59. A method according to claim 50, wherein estimating the current limiting characteristic comprises determining fitting parameters so as to fit a curve to the first and second magnitudes as a function of the first and second settings.
 60. A method according to claim 50, wherein supplying the current comprises supplying respective currents to a plurality of loads through respective current limiters, and wherein estimating the current limiting characteristic comprises using a single digital processor to estimate respective current limiting characteristics for two or more of the current limiters.
 61. A method according to claim 60, wherein sampling the current comprises sampling the respective currents supplied to the plurality of the loads using a single current sensing device to determine and provide the magnitudes of the respective currents to the digital processor.
 62. A method according to claim 60, wherein supplying the respective currents comprises supplying the currents to the plurality of loads over a local area network (LAN).
 63. A method for supplying power to multiple loads, comprising: coupling a power supply to supply respective currents to all the loads through respective current limiters; measuring the respective currents in alternation using a common current sensor for all the loads; and setting the respective current limiters responsive to the measured currents, so as to maintain the currents supplied to the loads within a predetermined range.
 64. A method according to claim 63, wherein measuring the respective currents comprises alternating among the multiple loads in a round robin.
 65. A method according to claim 63, wherein measuring the respective currents comprises: selecting one of the currents to measure; interrupting the currents other than the selected current; and measuring the current using the common current sensor while the other currents are interrupted.
 66. A method according to claim 63, wherein measuring the respective currents comprises: selecting one of the currents to measure; making a first measurement of all the currents together using the common current sensor; interrupting the selected current; making a second measurement of all the currents together using the common current sensor while the selected current is interrupted; and taking a difference between the first and second measurements in order to measure the selected current.
 67. A method according to claim 63, wherein the current limiters comprise variable-impedance devices, and wherein setting the respective current limiters comprises applying respective impedance settings to the devices.
 68. A method according to claim 63, wherein the current limiters comprise pulse width modulators, which are coupled to apply pulse width modulation to the respective currents supplied to the loads, and wherein setting the respective current limiters comprises setting respective duty cycles of the pulse width modulators.
 69. A method according to claim 63, wherein coupling the power supply comprises supplying the currents to the multiple loads over a local area network (LAN). 